<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CSS任意位置</title>
    <!-- css的位置任意定义 -->
    <style>
      .container {
        display: block;
        width: 100px;
        height: 100px;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <style>
        .red {
          background-color: red;
          height: 100%;
        }
      </style>
      <div class="red">red</div>
    </div>
    <div class="container">
      <style>
        .green {
          background-color: green;
          height: 100%;
        }
      </style>
      <div class="green">green</div>
    </div>
    <div class="container">
      <style>
        .blue {
          height: 100%;
          width: 100%;
          background-color: blue;
          transition: width 1s linear;
        }

        .blue:hover {
          width: 200px;
        }
      </style>
      <div class="blue">blue</div>
    </div>
  </body>
</html>
